package cn.yanghan.org.utils;

import java.util.List;

/**
 * 此类是专门返回GM要求的数据格式
 * @author ITsource
 *
 */
public class QueryResult<T> {

	// 总条数
	private Long totals;
	
	// 返回的数据
	private List<T> data;

	public QueryResult() {
		super();
	}

	public QueryResult(Long totals, List<T> data) {
		super();
		this.totals = totals;
		this.data = data;
	}

	public Long getTotals() {
		return totals;
	}

	public void setTotals(Long totals) {
		this.totals = totals;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}
	
}
